package com.qf.mapper;
/*
   @author 86155
   @ClassName: com.qf.mapper.BannerMapper
   @Description: 该类的功能描述
   @date: 2021/9/28 19:12 
*/

import com.qf.entity.Banner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BannerMapper {
    //添加banner
    int insertBanner(@Param("banner") Banner banner);

    //修改banner
    int updateBanner(@Param("banner") Banner banner);

    //删除,根据id
    int deleteBanner(@Param("bid") Long bid);

    //查看
    List<Banner> selectAllBanner(@Param("mid") Long mid,@Param("uid") Long uid,@Param("status") Integer status,@Param("bannerName") String bannerName,@Param("page") Integer page,@Param("size") Integer size);

      //  List<Banner> selectAll(@Param("bannerName") String bannerName);
}
